package com.xr.system.mapper;

import com.xr.system.common.base.MyBaseMapper;
import com.xr.system.common.base.MyPage;
import com.xr.system.entity.dictionaryModule.Dictionary;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 字典表 (Dictionary)表数据库访问层
 */
@Mapper
public interface DictionaryMapper extends MyBaseMapper<Dictionary> {

	List<Dictionary> listDicByParentCode(String code);

	/**
	 * @param page
	 * @return
	 */
	MyPage<Dictionary> queryByPage(@Param("page") MyPage<Dictionary> page, @Param("dictionary") Dictionary dictionary);

}
